package com.markbuikema.juliana32.enums;

public enum Category {
	SENIOREN("Senioren"), JUNIOREN("Junioren"), PUPILLEN("Pupillen");
	private String name;

	private Category(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public static Category fromName(String catString) {
		for (int c = 0; c < values().length; c++) {
			if (values()[c].getName().equals(catString))
				return values()[c];
		}
		return null;
	}
}